<?php
session_start();
/**
 * @author Minh Luan
 * @copyright 2012
 */

$pid = $_GET["n"];

if(isset($_SESSION['cart'])){
    echo "cart ton tai";
    $cart = $_SESSION['cart'];
    unset($cart[$pid]);
    $_SESSION['cart'] = $cart;
}else{
    $cart = array();
    $_SESSION['cart'] = $cart;
}
echo "<script>location.href='../pc/cart.php';</script>";
?>